package com.guigu.serviceorder.service;

import com.guigu.serviceorder.entity.CategoryReport;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface CategoryReportService {

    public List<CategoryReport> categoryReport(LocalDate date);


    public void createData();

    /**
     * 一级商品分类统计
     * @param date1
     * @param date2
     * @return
     */
    public List<Map> category1Count(String date1,String date2);

    /**
     * 商品销售情况
     * @param date1
     * @param date2
     * @return
     */
    List<Map> namenum(String date1,String date2);

    /**
     * 订单来源构成
     * @param date1
     * @return
     */
    List<Map> ordersourcenum(@Param("date1")String date1);
}
